package com.uranus.wallet.trade.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author wei_yzh
 * @since 2018-12-13
 */
public class Trade extends Model<Trade> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String tHash;

    private Integer tType;

    private Integer orderId;

    private Integer tConfirmations;

    private LocalDateTime createTime;

    private String tFrom;

    private Integer tFromId;

    private String tTo;

    private Integer tToId;

    private Double tValue;

    private Double tFee;

    private String tSignature;

    private Integer tStatus;

    private Integer tSize;

    private Integer tHeight;

    private Long tTvalue;

    private LocalDateTime updateTime;

    private String orderNo;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String gettHash() {
        return tHash;
    }

    public void settHash(String tHash) {
        this.tHash = tHash;
    }

    public Integer gettType() {
        return tType;
    }

    public void settType(Integer tType) {
        this.tType = tType;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer gettConfirmations() {
        return tConfirmations;
    }

    public void settConfirmations(Integer tConfirmations) {
        this.tConfirmations = tConfirmations;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String gettFrom() {
        return tFrom;
    }

    public void settFrom(String tFrom) {
        this.tFrom = tFrom;
    }

    public Integer gettFromId() {
        return tFromId;
    }

    public void settFromId(Integer tFromId) {
        this.tFromId = tFromId;
    }

    public String gettTo() {
        return tTo;
    }

    public void settTo(String tTo) {
        this.tTo = tTo;
    }

    public Integer gettToId() {
        return tToId;
    }

    public void settToId(Integer tToId) {
        this.tToId = tToId;
    }

    public Double gettValue() {
        return tValue;
    }

    public void settValue(Double tValue) {
        this.tValue = tValue;
    }

    public Double gettFee() {
        return tFee;
    }

    public void settFee(Double tFee) {
        this.tFee = tFee;
    }

    public String gettSignature() {
        return tSignature;
    }

    public void settSignature(String tSignature) {
        this.tSignature = tSignature;
    }

    public Integer gettStatus() {
        return tStatus;
    }

    public void settStatus(Integer tStatus) {
        this.tStatus = tStatus;
    }

    public Integer gettSize() {
        return tSize;
    }

    public void settSize(Integer tSize) {
        this.tSize = tSize;
    }

    public Integer gettHeight() {
        return tHeight;
    }

    public void settHeight(Integer tHeight) {
        this.tHeight = tHeight;
    }

    public Long gettTvalue() {
        return tTvalue;
    }

    public void settTvalue(Long tTvalue) {
        this.tTvalue = tTvalue;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Trade{" +
        "id=" + id +
        ", tHash=" + tHash +
        ", tType=" + tType +
        ", orderId=" + orderId +
        ", tConfirmations=" + tConfirmations +
        ", createTime=" + createTime +
        ", tFrom=" + tFrom +
        ", tFromId=" + tFromId +
        ", tTo=" + tTo +
        ", tToId=" + tToId +
        ", tValue=" + tValue +
        ", tFee=" + tFee +
        ", tSignature=" + tSignature +
        ", tStatus=" + tStatus +
        ", tSize=" + tSize +
        ", tHeight=" + tHeight +
        ", tTvalue=" + tTvalue +
        ", updateTime=" + updateTime +
        ", orderNo=" + orderNo +
        "}";
    }
}
